package org.minos.edit.controller
{
	import org.minos.edit.EditFacate;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;
	
	/**
	 * ...
	 * @author Minos
	 */
	public class ControllerPreCommand extends SimpleCommand
	{
		
		public function ControllerPreCommand()
		{
		}
		
		override public function execute( notification : INotification ) : void
		{
			super.execute( notification );
			
			//scene
			facade.registerCommand( EditFacate.REMOVE_SCENE_VO , RemoveSceneCommand );
			facade.registerCommand( EditFacate.ADD_SCENE_VO , AddSceneCommand );
			facade.registerCommand( EditFacate.EDIT_SCENE_VO , EditSceneCommand );
			//select
			facade.registerCommand( EditFacate.SELECT_PATH , SelectPathCommand );
			facade.registerCommand( EditFacate.SELECT_FILE , SelectFileCommand );
			facade.registerCommand( EditFacate.SELECT_SCENE , SelectSceneCommand );
			//file
			facade.registerCommand( EditFacate.NEW_FILE , NewFileCommand );
			facade.registerCommand( EditFacate.SAVE_FILE , SaveFileCommand );
			facade.registerCommand( EditFacate.OPEN_FILE , OpenFileCommand );
			facade.registerCommand( EditFacate.READ_FILE , ReadFileCommand );
			//dialog
			facade.registerCommand( EditFacate.SHOW_DIALOG , DialogCommand );
			//position
			facade.registerCommand( EditFacate.POSITION , FitStageCommand );
		
		}
	
	}

}